<?php include 'headerN.php'; 
include 'conexaoMysql.php';
$crud = new crud();

?>
      
        <div class="edicao">
            Inscrever Participante
        </div>
       <div id="contactform">
        <form id="form1" action="inscricoesModel.php?funcao=inserir" method="post" ><br>
            <fieldset>
                <legend><h2>Nova Inscrição</h2></legend>
                                
                <!--Combo usuario -->
                <label for="D1">Usuário</label>  
                  <select class=input name=comboUsuario>
                      <option selected>Selecione o usuário</option>
                 <?php
                 $lerEventos=$crud->ler('tbUsuarios');
                 while ($ev = mysql_fetch_array($lerEventos)){
                     echo "<option value=$ev[0]>$ev[1]</option>";
                     }?>
                     </select><br>
                
                <!--Combo evento -->
                <label for="D1">Evento</label>  
                  <select class=input name=comboEvento>
                      <option selected>Selecione o evento</option>
                 <?php
                 $lerEventos=$crud->ler('tbEvento');
                 while ($ev = mysql_fetch_array($lerEventos)){
                     echo "<option value=$ev[0]>$ev[1]</option>";
                     }?>
                     </select><br>
                    
                <!--Combo cursos -->
                <label for="D1">Curso</label>  
                  <select class=input name=comboCurso>
                      <option>Selecione o curso</option>
                 <?php
                 $lerEventos=$crud->ler('tbCursos');
                 while ($ev = mysql_fetch_array($lerEventos)){
                     echo "<option value=$ev[0]>$ev[1]</option>";
                     }?>
                     </select><br>
                     
                     <div class="buts">
		<button class="input" type="submit" value="Salvar">Salvar</button>
                
                </div>
            </fieldset>
	</form>
    </div>
       
       
       
        
        
        
        
        
        
        
        
        
        
  
        
        
 <?php include 'footerN.php';?>